package com.gxuwz.service.impl;

import com.gxuwz.dao.UserDao;
import com.gxuwz.entity.User;
import com.gxuwz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public User queryUserById(String userId) {
        User user = userDao.selectUserById(userId);
        return user;
    }

    public boolean updateUserInfo(User user) {
        int i = userDao.updateUser(user);
        boolean flag = i > 0 ? true : false;
        return flag;
    }
}
